Skip to content

chore: add unit tests for file click on codeblock #6710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 28, 2025

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jul 18, 2025

Description

Add test to check if file click on codeblock is functional

closes CON-2832

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screenshots

[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Added a unit test to check that clicking a file name in the code block preview opens the correct file.

  • Tests
  • Verifies that the "showFile" action is called with the expected file path when the file title is clicked.

@uinstinct uinstinct requested a review from a team as a code owner July 18, 2025 17:10
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team July 18, 2025 17:10
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 18, 2025
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jul 24, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 24, 2025
@tomasz-stefaniak tomasz-stefaniak merged commit 80d792f into continuedev:main Jul 28, 2025
45 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jul 28, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2025
@uinstinct uinstinct deleted the test-file-codeblock branch July 28, 2025 16:24
@sestinj
Copy link
Contributor

sestinj commented Jul 28, 2025

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Jul 28, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants